/*
 * Teknei 2014 - All rights reserved
 */
package com.teknei.acabus.example.services;

import java.util.List;

import javax.ejb.Local;

import com.teknei.acabus.ServiceException;
import com.teknei.acabus.core.entities.TableB;

/**
 * Interface of services related to TableB
 * @author Jorge Amaro
 * @version 1.0
 * @since 1.0
 *
 */
@Local
public interface TableBService {

	/**
	 * Finds all elements of TableB
	 * @return the list
	 * @throws ServiceException
	 */
	List<TableB> findAll() throws ServiceException;

	/**
	 * Updates a TableB instance
	 * @param entity
	 * @throws ServiceException
	 */
	void update(TableB entity) throws ServiceException;

	/**
	 * Saves a TableB instance
	 * @param entity the instance
	 * @return the id of the record
	 * @throws ServiceException
	 */
	int save(TableB entity) throws ServiceException;

	/**
	 * Deletes a TableB instance
	 * @param entity the instance
	 * @throws ServiceException
	 */
	void delete(TableB entity) throws ServiceException;

}
